// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MuseUI from 'muse-ui'
import 'amfe-flexible/index'
import 'muse-ui/dist/theme-self.css'
import 'muse-ui/dist/theme-light.min.css'
import '../static/css/myreset.css'
import fastclick from 'fastclick'
import {currency} from "./common/js/currency"
import AMap from 'vue-amap'
// import './common/js/remUnit'
import {formatTime} from "./common/js/formatTime";
import store from './store'

Vue.use(MuseUI)
Vue.use(AMap)

// 初始化vue-amap
AMap.initAMapApiLoader({
  // 申请的高德key
  key: '106b88c23ba2686d10e17fb30c794adc',
  // 插件集合
  plugin: ['AMap.PlaceSearch', 'AMap.Geolocation']
});

Vue.config.productionTip = false

Vue.filter('currency', currency)
Vue.filter('formatTime', formatTime)

fastclick.attach(document.body)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
